


function closeBtn(){
    var treeObj = $.fn.zTree.getZTreeObj("treeDemo")
    if(treeObj == null){
        closeLayer();
    }else{

        var pId = treeObj.getNodeByParam('pId', 0);

        //新增数据来源，删除数据来源调用方法一样
        params.taxCode =$("#sel_sz").combobox("getValue");
        params.tdPerdCode =$("#sel_sbzq").combobox("getValue");
        params.taxPayerCode= pId.code;
        params.taxPerd =getTaxPerd();
        params.cbid = "-1";
        params.flag ="0";
        $.ajax({
            type:"POST",
            url:path+"/system/declareParameter/deleteTaxpayer",
            data:params,
            dataType:"json",
            success:function callback(data){
                var analyMsg = data.returnObject;
                if (data.code=="0000") {
                    setTimeout("closeLayer()", 100);//设置延时，防止IE下出现异常
                } else {
                    $.messager.alert('信息',data.msg,'info',function(){});
                }
            }
        });
    }



}